﻿using System.Text;
using Verse;
using RimWorld;

namespace RimZombieGirl
{
    public class StatWorker_CurseImmunity : StatWorker
    {
        public override string GetExplanationUnfinalized(StatRequest req, ToStringNumberSense numberSense)
        {
            StringBuilder stringBuilder = new StringBuilder();

            if (req.HasThing && req.Thing is Pawn pawn)
            {
                // 可以扩展：种族、特性、hediff 都能提供额外说明
                stringBuilder.AppendLine("诅咒免疫力代表了该殖民者抵御神秘诅咒的能力。");
                stringBuilder.AppendLine("免疫越高，每日减少的诅咒严重度越多。");
            }

            stringBuilder.Append(base.GetExplanationUnfinalized(req, numberSense));
            return stringBuilder.ToString();
        }
    }
}
